<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :showBackIcon="false"
      :background="{ background: 'transparent' }"
      :border-bottom="false"
      title="收款费率"
    >
    </u-navbar>

    <image class="bg" src="/static/images/bg.png" mode="widthFix"></image>

    <view class="content">
      <view class="header">
        <image
          class="sqhlBg"
          src="/static/images/bg-sqhl.png"
          mode="widthFix"
        />
        <view class="header-content">
          <view class="title">成为服务商 推广享收益</view>
          <view class="subTitle">起步压力小 行业前景好</view>
          <view class="btn-group">
            <view class="btn">
              <text>收款折扣</text>
            </view>
            <view class="btn">
              <text>专属客服</text>
            </view>
            <view class="btn">
              <text>等级提升</text>
            </view>
            <view class="btn">
              <text>专属商品</text>
            </view>
          </view>
        </view>
      </view>

      <view class="section">
        <view class="title">
          <text>扫码费率</text>
          <image
            class="title-sign"
            src="/static/images/icon-tzgg.png"
            mode="widthFix"
          ></image>
        </view>
        <view class="row">
          <view class="item">
            <view class="item-info">
              <view class="name">支付宝</view>
              <view class="more">0~不限金额 0.38%</view>
            </view>
            <image
              class="item-img"
              src="/static/images/skfl-zfb.png"
              mode="widthFix"
            ></image>
          </view>

          <view class="item">
            <view class="item-info">
              <view class="name">微信</view>
              <view class="more">0~不限金额 0.38%</view>
            </view>
            <image
              class="item-img"
              src="/static/images/skfl-wx.png"
              mode="widthFix"
            ></image>
          </view>
        </view>
      </view>

      <view class="section">
        <view class="title">
          <text>刷卡费率</text>
          <image
            class="title-sign"
            src="/static/images/icon-tzgg.png"
            mode="widthFix"
          ></image
        ></view>
        <view class="row skflBox">
          <view class="item1">
            <image
              class="img"
              src="/static/images/skfl-xyk.png"
              mode="widthFix"
            ></image>

            <view class="name">信用卡费率</view>
            <view class="value">0.6%</view>
          </view>

          <view class="item1">
            <image
              class="img"
              src="/static/images/skfl-cxk.png"
              mode="widthFix"
            ></image>

            <view class="name">储蓄卡费率</view>
            <view class="value">0.6%</view>
          </view>

          <view class="item1">
            <image
              class="img"
              src="/static/images/skfl-vip.png"
              mode="widthFix"
            ></image>

            <view class="name">信用卡费率</view>
            <view class="value">0.6%</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 30rpx 60rpx;
  background-color: #f5f5f5;
  box-sizing: border-box;
  .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
  }
}

.content {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 9;
}

.header {
  position: relative;
  width: 100%;
  .sqhlBg {
    width: 100%;
    height: auto;
  }

  .header-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 70rpx 30rpx 34rpx;
    width: 100%;
    height: 100%;
    .title {
      width: 100%;
      font-family: PingFang SC, sans-serif;
      font-weight: 800;
      font-size: 36rpx;
      color: #ffeacc;
      line-height: 1;
    }
    .subTitle {
      margin-top: 20rpx;
      width: 100%;
      font-family: PingFang SC, sans-serif;
      font-weight: 400;
      font-size: 24rpx;
      color: rgba($color: #ffffff, $alpha: 0.5);
      line-height: 1;
    }
    .btn-group {
      display: flex;
      justify-content: space-between;
      margin-top: 50rpx;
      width: 100%;
      .btn {
        position: relative;
        flex: 1;
        min-width: 0;
        height: 140rpx;
        padding-top: 90rpx;
        text-align: center;
        z-index: 9;
        text {
          font-family: PingFang SC, sans-serif;
          font-weight: 500;
          font-size: 22rpx;
          color: rgba($color: #ffffff, $alpha: 0.6);
        }
      }
    }
  }
}

.section {
  margin-top: 30rpx;
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  border-radius: 20rpx;
  .title {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    text {
      position: relative;
      font-family: PingFang SC, sans-serif;
      font-weight: 800;
      font-size: 28rpx;
      color: #333333;
      z-index: 9;
    }
    .title-sign {
      position: absolute;
      top: -10rpx;
      left: 95rpx;
      width: 32rpx;
      height: auto;
      z-index: 1;
    }
  }
  .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    min-width: 0;
    padding: 20rpx;
    background: #ffffff;
    border-radius: 20rpx;
    &:first-child {
      margin-right: 8rpx;
    }
    &:last-child {
      margin-left: 8rpx;
    }
    .item-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 1;
      padding-right: 13rpx;
      text-align: left;
      .name {
        font-family: PingFang SC, sans-serif;
        font-weight: 800;
        font-size: 28rpx;
        color: #333333;
      }
      .more {
        margin-top: 11rpx;
        font-family: PingFang SC, sans-serif;
        font-weight: 400;
        font-size: 22rpx;
        color: #999999;
      }
    }
    .item-img {
      width: 83rpx;
      height: 83rpx;
    }
  }
  .skflBox {
    margin-top: 30rpx;
    padding: 30rpx;
    background: #ffffff;
    border-radius: 20rpx;
  }

  .item1 {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    text-align: center;
    .img {
      width: 48rpx;
      height: 48rpx;
    }
    .name {
      margin-top: 20rpx;
      width: 100%;
      font-family: PingFang SC, sans-serif;
      font-weight: 500;
      font-size: 22rpx;
      color: #333333;
    }
    .value {
      margin-top: 10rpx;
      width: 100%;
      font-family: PingFang SC, sans-serif;
      font-weight: 500;
      font-size: 22rpx;
      color: #333333;
    }
  }
}
</style>
